﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="Personer.aspx.cs" Inherits="TandvardsstodApp.Personkrets.Personer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
Tandvårdsstöd - Sök person
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">

<%-- Skapad och bearbetat av Safin Hassan --%>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:Label ID="LblSokPersoner" runat="server" Text="Sök person:"></asp:Label>
        &nbsp;<asp:TextBox ID="TxtSok" runat="server"></asp:TextBox>
        <br />
        <br />
        <asp:DetailsView ID="DetailsView1" runat="server" CellPadding="4" 
            DataSourceID="ObjectDataSource1" ForeColor="#333333" GridLines="None" 
            Height="600px" Width="500px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
            <EditRowStyle BackColor="#2461BF" />
            <FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" ForeColor="#333333" />
        </asp:DetailsView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetDataByKortnummer" 
            TypeName="TandvardsstodApp.ServiceReference1.Service1Client">
            <SelectParameters>
                <asp:ControlParameter ControlID="TxtSok" DefaultValue="10" Name="Personnummer" 
                    PropertyName="Text" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <br />
        <br />
    </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    </asp:Content>
